package com.example.product.controller;

import com.example.api.dto.SysUserDto;
import com.example.api.util.Result;
import com.example.api.util.UID;
import com.example.product.service.SysUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;

/**
 * @Title:
 * @Description 用户控制器
 * @param
 * @author zhangning
 * @Date 2019/9/4 14:23
 */
@RestController
@Api(value = "用户在线接口文档")
@RequestMapping(value = "/sysUser",produces = "application/json; charset=utf-8")
public class SysUserController {
    @Autowired
    private SysUserService sysUserService;

    @RequestMapping(value = "/userPage",method = RequestMethod.GET)
    @ApiOperation(value = "根据入参分页查询用户")
    public Result userPage(@RequestBody SysUserDto sysUserDto){
        return sysUserService.pageUser(sysUserDto);
    }
}

